using System;
using digit.Core;
using System.Data;

namespace SMS.ServiceManager
{
    public class PlayerInfo
    {
        #region CONSTRUCTORS
        public PlayerInfo()
        {

            this.m_playerID = Util.NULL_LONG;
            this.m_playerName = Util.NULL_STRING;
            this.m_birthday = Util.NULL_STRING;
            this.m_weight = Util.NULL_STRING;
            this.m_height = Util.NULL_STRING;
            this.m_shirtNo = Util.NULL_STRING;
            this.m_playPosition = Util.NULL_STRING;
            this.m_imgPath = Util.NULL_STRING;
            this.m_birthPlace = Util.NULL_STRING;
            this.m_archieve = Util.NULL_STRING;
            this.m_pastTeam = Util.NULL_STRING;
            this.m_countryName = Util.NULL_STRING;
            this.m_hireDate = Util.NULL_STRING;
            this.m_info = Util.NULL_STRING;
            this.m_createdBy = Util.NULL_STRING;
            this.m_createdDate = Util.NULL_DATETIME;
            this.m_type = Util.NULL_BYTE;
            this.m_status = Util.NULL_BYTE;
        }
        public PlayerInfo(long playerID, string playerName, string birthday, string weight, string height, string shirtNo, string playPosition, string imgPath, string birthPlace, string archieve, string pastTeam, string countryName, string hireDate, string info, string createdBy, DateTime createdDate, byte type, byte status)
        {

            this.m_playerID = playerID;
            this.m_playerName = playerName;
            this.m_birthday = birthday;
            this.m_weight = weight;
            this.m_height = height;
            this.m_shirtNo = shirtNo;
            this.m_playPosition = playPosition;
            this.m_imgPath = imgPath;
            this.m_birthPlace = birthPlace;
            this.m_archieve = archieve;
            this.m_pastTeam = pastTeam;
            this.m_countryName = countryName;
            this.m_hireDate = hireDate;
            this.m_info = info;
            this.m_createdBy = createdBy;
            this.m_createdDate = createdDate;
            this.m_type = type;
            this.m_status = status;
        }
        public PlayerInfo(DataRow dRow)
        {

            this.m_playerID = (long)Util.ReplaceDBNullTo(dRow["playerID"], Util.NULL_LONG);
            this.m_playerName = Util.ReplaceDBNullTo(dRow["playerName"], Util.NULL_STRING).ToString();
            this.m_birthday = Util.ReplaceDBNullTo(dRow["birthday"], Util.NULL_STRING).ToString();
            this.m_weight = Util.ReplaceDBNullTo(dRow["weight"], Util.NULL_STRING).ToString();
            this.m_height = Util.ReplaceDBNullTo(dRow["height"], Util.NULL_STRING).ToString();
            this.m_shirtNo = Util.ReplaceDBNullTo(dRow["shirtNo"], Util.NULL_STRING).ToString();
            this.m_playPosition = Util.ReplaceDBNullTo(dRow["playPosition"], Util.NULL_STRING).ToString();
            this.m_imgPath = Util.ReplaceDBNullTo(dRow["imgPath"], Util.NULL_STRING).ToString();
            this.m_birthPlace = Util.ReplaceDBNullTo(dRow["birthPlace"], Util.NULL_STRING).ToString();
            this.m_archieve = Util.ReplaceDBNullTo(dRow["archieve"], Util.NULL_STRING).ToString();
            this.m_pastTeam = Util.ReplaceDBNullTo(dRow["pastTeam"], Util.NULL_STRING).ToString();
            this.m_countryName = Util.ReplaceDBNullTo(dRow["countryName"], Util.NULL_STRING).ToString();
            this.m_hireDate = Util.ReplaceDBNullTo(dRow["hireDate"], Util.NULL_STRING).ToString();
            this.m_info = Util.ReplaceDBNullTo(dRow["info"], Util.NULL_STRING).ToString();
            this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
            this.m_createdDate = (DateTime)Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
            this.m_type = (byte)Util.ReplaceDBNullTo(dRow["type"], Util.NULL_BYTE);
            this.m_status = (byte)Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
        }
        #endregion

        #region ATTRIBUTES
        private long m_playerID;
        private string m_playerName;
        private string m_birthday;
        private string m_weight;
        private string m_height;
        private string m_shirtNo;
        private string m_playPosition;
        private string m_imgPath;
        private string m_birthPlace;
        private string m_archieve;
        private string m_pastTeam;
        private string m_countryName;
        private string m_hireDate;
        private string m_info;
        private string m_createdBy;
        private DateTime m_createdDate;
        private byte m_type;
        private byte m_status;
        #endregion

        #region PROPERTIES
        public long PlayerID
        {
            get
            {
                return this.m_playerID;
            }
            set
            {
                this.m_playerID = value;
            }
        }

        public string PlayerName
        {
            get
            {
                return this.m_playerName;
            }
            set
            {
                this.m_playerName = value;
            }
        }

        public string Birthday
        {
            get
            {
                return this.m_birthday;
            }
            set
            {
                this.m_birthday = value;
            }
        }

        public string Weight
        {
            get
            {
                return this.m_weight;
            }
            set
            {
                this.m_weight = value;
            }
        }

        public string Height
        {
            get
            {
                return this.m_height;
            }
            set
            {
                this.m_height = value;
            }
        }

        public string ShirtNo
        {
            get
            {
                return this.m_shirtNo;
            }
            set
            {
                this.m_shirtNo = value;
            }
        }

        public string PlayPosition
        {
            get
            {
                return this.m_playPosition;
            }
            set
            {
                this.m_playPosition = value;
            }
        }

        public string ImgPath
        {
            get
            {
                return this.m_imgPath;
            }
            set
            {
                this.m_imgPath = value;
            }
        }

        public string BirthPlace
        {
            get
            {
                return this.m_birthPlace;
            }
            set
            {
                this.m_birthPlace = value;
            }
        }

        public string Archieve
        {
            get
            {
                return this.m_archieve;
            }
            set
            {
                this.m_archieve = value;
            }
        }

        public string PastTeam
        {
            get
            {
                return this.m_pastTeam;
            }
            set
            {
                this.m_pastTeam = value;
            }
        }

        public string CountryName
        {
            get
            {
                return this.m_countryName;
            }
            set
            {
                this.m_countryName = value;
            }
        }

        public string HireDate
        {
            get
            {
                return this.m_hireDate;
            }
            set
            {
                this.m_hireDate = value;
            }
        }

        public string Info
        {
            get
            {
                return this.m_info;
            }
            set
            {
                this.m_info = value;
            }
        }

        public string CreatedBy
        {
            get
            {
                return this.m_createdBy;
            }
            set
            {
                this.m_createdBy = value;
            }
        }

        public DateTime CreatedDate
        {
            get
            {
                return this.m_createdDate;
            }
            set
            {
                this.m_createdDate = value;
            }
        }

        public byte Type
        {
            get
            {
                return this.m_type;
            }
            set
            {
                this.m_type = value;
            }
        }

        public byte Status
        {
            get
            {
                return this.m_status;
            }
            set
            {
                this.m_status = value;
            }
        }

        #endregion

    }
}